package HomeWork;

public class StudentAccout {
    private Student[] students;
    private  int studentnumber;
//Constructor========================================================
    public StudentAccout(){
        students = new Student[10];
    }
//method=============================================================
    public void addStudent(String name,String gender, int age, String major){
        Student st = new Student(name,gender,age,major);
        students[studentnumber++] = st;
    }

    public int getStudentnumber() {
        return this.studentnumber;
    }

    public Student getStudents(int index) {
        return students[index];
    }
}
